package com.iplatform.file.function.resourcedata.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.iplatform.module.annotation.KeyId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * basic_data
 * @author 
 */
@Data
@AllArgsConstructor
public class BasicDataBean implements Serializable {
    /**
     * 主键id
     */
    @KeyId
    @ApiModelProperty(value = "主键Id")
    private Long id;

    /**
     *  机构
     */
    @ApiModelProperty(value = "机构")
    private String mechanism;

    /**
     *  资源名称
     */
    @ApiModelProperty(value = "资源名称")
    private String resourcesName;

    /**
     *  文件依据
     */
    @ApiModelProperty(value = "文件依据")
    private String documentBasis;

    /**
     *  获取频率
     */
    @ApiModelProperty(value = "获取频率")
    private String acquisitionFrequency;

    /**
     *  最后一次获取时间
     */
    @ApiModelProperty(value = "最后一次获取时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date lastGetTime;

    /**
     *  下次获取时间
     */
    @ApiModelProperty(value = "下次获取时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date nextGetTime;

    /**
     *  起始时间
     */
    @ApiModelProperty(value = "起始时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date beginTime;

    /**
     *  数据获取方式
     */
    @ApiModelProperty(value = "数据获取方式")
    private String getDataType;

    /**
     *  目录名称
     */
    @ApiModelProperty(value = "目录名称")
    private String directoryName;

    /**
     *  资源共享级别
     */
    @ApiModelProperty(value = "资源共享级别")
    private String resourceSharingLevel;

    /**
     *  资源类型
     */
    @ApiModelProperty(value = "资源类型")
    private String resourceType;

    /**
     *  备注
     */
    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "所属目录ID")
    private Long parentId;


    private static final long serialVersionUID = 1L;

    public BasicDataBean() {
    }




    
}